package com.shaw.workrecord.pojo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("账单对象")
public class RecordAddRequest {

    @ApiModelProperty(value = "账本id", required = true)
    @NotNull
    private Long groupId;

    @ApiModelProperty("账单名字")
    @NotEmpty
    private String name;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty(value = "金额", required = true)
    @NotNull
    private Float amount;

    @ApiModelProperty("类型，1收入；2支出")
    @NotNull
    private Integer type;
}
